package com.wn.pay.api;

import com.wn.common.model.dto.trade.payback.PayBackDTO;
import com.wn.common.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author yellow Docter
 * @date 2023 -03-09
 * @desc 调用  还款的业务的openfeign接口
 */
@FeignClient("sddfp-pay-back-service")
public interface PayBankApi {

    //生成还款计划
    @ApiOperation("开启还款") // 放款：接口4，开启还款
    @PostMapping("/pay-plan/inner/pay-back/pay-plan")
    public Result<String> payPlan(
            @RequestBody PayBackDTO payBackDTO);

}
